package com.aplink.generic.pojo;

import java.io.Serializable;
import java.util.ArrayList;

import com.aplink.generic.dictionary.GenericDictionary;

public class WebserviceConfig implements Serializable {
	private static final long serialVersionUID = 3981345661477862432L;
	private String mChangePassword;
	private String mForgotPassword;
	private String mInitData;
	private GenericDictionary<String, TableSyncData> mTableDownloads;
	private ArrayList<String> mTableInitLists;
	private String mUpdateLocation;
	private String mWebserviceDomain;

	public WebserviceConfig() {
		this.mTableDownloads = new GenericDictionary<String, TableSyncData>();
		mTableInitLists = new ArrayList<>();
	}

	public void addTableDownload(final String tableName,
	        final TableSyncData tableDownload) {
		this.mTableDownloads.put(tableName, tableDownload);
	}

	public String getChangePassword() {
		return this.mChangePassword;
	}

	public String getForgotPassword() {
		return this.mForgotPassword;
	}

	public String getInitData() {
		return this.mInitData;
	}

	public ArrayList<String> getTableInitLists() {
		return mTableInitLists;
	}

	public GenericDictionary<String, TableSyncData> getTableSyncData() {
		return this.mTableDownloads;
	}

	public String getUpdateLocation() {
		return mUpdateLocation;
	}

	public String getWebserviceDomain() {
		return this.mWebserviceDomain;
	}

	public void setChangePassword(final String changePassword) {
		this.mChangePassword = changePassword;
	}

	public void setForgotPassword(final String forgotPassword) {
		this.mForgotPassword = forgotPassword;
	}

	public void setInitData(final String initData) {
		this.mInitData = initData;
	}

	public void setTableInitLists(ArrayList<String> tableInitLists) {
		mTableInitLists = tableInitLists;
	}

	public void setTableSyncData(
	        final GenericDictionary<String, TableSyncData> tableDownloads) {
		this.mTableDownloads = tableDownloads;
	}

	public void setUpdateLocation(final String updateLocation) {
		mUpdateLocation = updateLocation;
	}

	public void setWebserviceDomain(final String webserviceDomain) {
		this.mWebserviceDomain = webserviceDomain;
	}
}
